package com.hk.kindheartedness.model;

import java.util.Date;

/**
 * @Author：alpha
 * @Create：2022/2/27/12:49
 * @Description：科室
 * @Version：1.0
 */
public class Departments {

    /**
     * ID 唯一 （默认自增）
     */
    private Integer id;

    /**
     * 科室名称 唯一
     */
    private String name;

    /**
     * 科室描述
     */
    private String describe;

    /**
     * 科室级别（一级节点0）
     */
    private Integer departmentsId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDepartmentsId() {
        return departmentsId;
    }

    public void setDepartmentsId(Integer departmentsId) {
        this.departmentsId = departmentsId;
    }

    public Departments() {
        super();
    }

    public Departments(Integer id, String name, String describe, Integer departmentsId, Date createTime, Date updateTime) {
        this.id = id;
        this.name = name;
        this.describe = describe;
        this.departmentsId = departmentsId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Departments{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", describe='" + describe + '\'' +
                ", departmentsId=" + departmentsId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
